package day6.pet;

/**
 * @author oldliu
 * @since 1.0
 */
public class PetTest4 {
    public static void main(String[] args) {
//        Dog d=new Dog("哮天犬",59,70,"公","中华田园犬");
        Pet d=new Dog("哮天犬",59,70,"公","中华田园犬");
        d.print();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>");
        Penguiun e=new Penguiun("小蓝企鹅",70,90,"公");
        e.print();
        System.out.println( e.hashCode());//Object
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        Object o=new  Penguiun("小花企鹅",70,90,"公");
        //>>>o.print();
        //>>>o.getName();
        System.out.println("o="+o);//默认返回toString返回的值。。。
    }
}
